<?php

class m130703_125540_insert_currencies_config extends CDbMigration
{
	public function up()
	{
		$sql = "
			INSERT INTO `currencies` (`id`, `name`, `code`, `rate`) 
			VALUES 
			(NULL, 'wmz','USD','200000'), 
			(NULL, 'pm', 'USD', '200000'),
			(NULL, 'bk', 'VND', '10');
		";
		//1000 vnd = 10 coin
		$this->execute($sql);
		return true;
	}

	public function down()
	{
		echo "m130703_125540_insert_currencies_config does not support migration down.\n";
		return false;
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}